package com.eben.model;

public class Highscore {
	private Score score;
	private String name;
	public Highscore(Score score, String name){
		this.score = score;
		this.name = name;
	}
	
	/**
	 * Gives the highscore as a string that looks like: "name,score"
	 * The score is showed as an integer
	 */
	public String toString(){
		return this.name + "," + this.score.getScoreInt();
	}
	
	public Score getScore() {
		return score;
	}
	public void setScore(Score score) {
		this.score = score;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

}
